<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="language" content="en" />

    <!-- blueprint CSS framework -->
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/screen.css" media="screen, projection" />
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/print.css" media="print" />
    <!--[if lt IE 8]>
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/ie.css" media="screen, projection" />
    <![endif]-->

    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/main.css" />
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/form.css" />
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/additional.css" />

    <title><?php echo CHtml::encode($this->pageTitle); ?></title>
</head>

<body>

<div class="container" id="page">

    <div id="header" class="dontprint">
        <div id="logo" title="<?php echo Yii::t('site','Go to Home page'); ?>" style="cursor:pointer" onclick="self.location.href='<?php echo Yii::app()->request->baseUrl ?>';"><?php echo CHtml::encode(sprintf("%s V%s",Yii::app()->name,Yii::app()->params['version'])); ?></div>
    </div><!-- header -->

    <div id="mainmenu" class="dontprint">
        <?php $this->widget('zii.widgets.CMenu',array(
            'items'=>array(
                array('label'=>Yii::t('site','Home'), 'url'=>array('/site/index')),
                array('label'=>Yii::t('site','OnePagers'), 'url'=>array('/onePager'), 'visible'=>!Yii::app()->user->isGuest),
                array('label'=>Yii::t('site','Admin'), 'url'=>array('/admin'), 'visible'=>!Yii::app()->user->isGuest),
                array('label'=>Yii::t('site','About'), 'url'=>array('/site/page', 'view'=>'about')),
                array('label'=>Yii::t('site','Contact'), 'url'=>array('/site/contact')),
                /*
                array('label'=>Yii::t('site','Login'), 'url'=>array('/site/login'), 'visible'=>Yii::app()->user->isGuest),
                array('label'=>Yii::t('site','Logout'), 'url'=>array('/site/logout'), 'visible'=>!Yii::app()->user->isGuest),
                */
                array('label'=>'.', 'url'=>array('/gii')),
            ),
        )); ?>
    </div><!-- mainmenu -->

    <?php $this->widget('zii.widgets.CBreadcrumbs', array(
        'links'=>$this->breadcrumbs,
        'htmlOptions' => array('class' => 'breadcrumbs dontprint')
    )); ?><!-- breadcrumbs -->

    <?php //echo "<li>Prefered Language: ".Yii::app()->getRequest()->preferredLanguage; ?>
    <?php echo $content; ?>

    <div id="footer" class="dontprint">
        Copyright &copy; <?php echo date('Y'); ?> by GM / Opel<br/>
        All Rights Reserved.<br/>
        <?php echo Yii::powered(); ?>
    </div><!-- footer -->

</div><!-- page -->
<div align="left">
<pre>
<?php //print_r($_SESSION); ?>
</pre>
</div>
</body>
</html>
